package com.dbl.oms.platform.persistence.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.dbl.oms.common.model.SuperEntity;

/**
 * <p>
 * 管理员表
 * </p>
 *
 * @author Ladd
 * @since 2017-12-15
 */
@TableName("sys_user")
public class SysUser extends SuperEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 用户编码
     */
	@TableField("user_code")
	private String userCode;
    /**
     * 用户姓名
     */
	@TableField("user_name")
	private String userName;
    /**
     * 密码
     */
	private String password;
    /**
     * md5密码盐
     */
	private String salt;
    /**
     * 生日
     */
	private Date birthday;
    /**
     * 性别（M：男 F：女）
     */
	private String sex;
    /**
     * 电子邮件
     */
	private String email;
    /**
     * 电话
     */
	private String phone;
    /**
     * 部门id
     */
	@TableField("dept_code")
	private String deptCode;
    /**
     * 用户描述
     */
	private String desc;
    /**
     * 是否超级管理员
     */
	@TableField("is_super")
	private String isSuper;
    /**
     * 图标头像
     */
	private String icon;
    /**
     * 状态(1：有效  2：冻结  3：无效）
     */
	private String status;
    /**
     * 创建人
     */
	@TableField("create_by")
	private String createBy;
    /**
     * 创建时间
     */
	@TableField("create_time")
	private Date createTime;
    /**
     * 变更人
     */
	@TableField("update_by")
	private String updateBy;
    /**
     * 变更时间
     */
	@TableField("update_time")
	private Date updateTime;


	public Integer getId() {
		return id;
	}

	public SysUser setId(Integer id) {
		this.id = id;
		return this;
	}

	public String getUserCode() {
		return userCode;
	}

	public SysUser setUserCode(String userCode) {
		this.userCode = userCode;
		return this;
	}

	public String getUserName() {
		return userName;
	}

	public SysUser setUserName(String userName) {
		this.userName = userName;
		return this;
	}

	public String getPassword() {
		return password;
	}

	public SysUser setPassword(String password) {
		this.password = password;
		return this;
	}

	public String getSalt() {
		return salt;
	}

	public SysUser setSalt(String salt) {
		this.salt = salt;
		return this;
	}

	public Date getBirthday() {
		return birthday;
	}

	public SysUser setBirthday(Date birthday) {
		this.birthday = birthday;
		return this;
	}

	public String getSex() {
		return sex;
	}

	public SysUser setSex(String sex) {
		this.sex = sex;
		return this;
	}

	public String getEmail() {
		return email;
	}

	public SysUser setEmail(String email) {
		this.email = email;
		return this;
	}

	public String getPhone() {
		return phone;
	}

	public SysUser setPhone(String phone) {
		this.phone = phone;
		return this;
	}

	public String getDeptCode() {
		return deptCode;
	}

	public SysUser setDeptCode(String deptCode) {
		this.deptCode = deptCode;
		return this;
	}

	public String getDesc() {
		return desc;
	}

	public SysUser setDesc(String desc) {
		this.desc = desc;
		return this;
	}

	public String getIsSuper() {
		return isSuper;
	}

	public SysUser setIsSuper(String isSuper) {
		this.isSuper = isSuper;
		return this;
	}

	public String getIcon() {
		return icon;
	}

	public SysUser setIcon(String icon) {
		this.icon = icon;
		return this;
	}

	public String getStatus() {
		return status;
	}

	public SysUser setStatus(String status) {
		this.status = status;
		return this;
	}

	public String getCreateBy() {
		return createBy;
	}

	public SysUser setCreateBy(String createBy) {
		this.createBy = createBy;
		return this;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public SysUser setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}

	public String getUpdateBy() {
		return updateBy;
	}

	public SysUser setUpdateBy(String updateBy) {
		this.updateBy = updateBy;
		return this;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public SysUser setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static final String ID = "id";

	public static final String USER_CODE = "user_code";

	public static final String USER_NAME = "user_name";

	public static final String PASSWORD = "password";

	public static final String SALT = "salt";

	public static final String BIRTHDAY = "birthday";

	public static final String SEX = "sex";

	public static final String EMAIL = "email";

	public static final String PHONE = "phone";

	public static final String DEPT_CODE = "dept_code";

	public static final String DESC = "desc";

	public static final String IS_SUPER = "is_super";

	public static final String ICON = "icon";

	public static final String STATUS = "status";

	public static final String CREATE_BY = "create_by";

	public static final String CREATE_TIME = "create_time";

	public static final String UPDATE_BY = "update_by";

	public static final String UPDATE_TIME = "update_time";

	@Override
	public String toString() {
		return "SysUser{" +
			", id=" + id +
			", userCode=" + userCode +
			", userName=" + userName +
			", password=" + password +
			", salt=" + salt +
			", birthday=" + birthday +
			", sex=" + sex +
			", email=" + email +
			", phone=" + phone +
			", deptCode=" + deptCode +
			", desc=" + desc +
			", isSuper=" + isSuper +
			", icon=" + icon +
			", status=" + status +
			", createBy=" + createBy +
			", createTime=" + createTime +
			", updateBy=" + updateBy +
			", updateTime=" + updateTime +
			"}";
	}
}
